<template>
<div class="category">
   <top-nav-bar />
    <left-nav-bar :leftdata='leftdata' />
</div>
</template>

<script>
import  {category,} from 'network/category'

import  TopNavBar from './childen/topnavbar'
import  LeftNavBar from './childen/leftnavbar'
export default {
  name:'Category',
  components: {
    LeftNavBar,TopNavBar
  },
  data () {
    return {
      leftdata:[],
      maitKey:[]
    }
  },
  created () {
    category().then(res=>{
       console.log(res)
      this.leftdata=res.data.category.list
     
    })
    
  }
}
</script>

<style scoped>


</style>